var reverse = function (x) {
    let b = + Array.from(`${Math.abs(x)}`).reverse().join('')
    if (!isFinite(b)) {
        return 0
    }
    return x > 0 ? b : -b
}
/**
 * isFinite :  Infinity or NaN false
 */
